package com.ds.infrastructure.hyperspace.console.service.inf;

import com.ds.infrastructure.hyperspace.console.common.methodlock.MethodLockId;
import com.ds.infrastructure.hyperspace.console.dto.deploydata.HostGroupDTO;
import com.ds.infrastructure.hyperspace.console.entity.table.TbDeployConfig;
import com.ds.infrastructure.hyperspace.console.entity.table.TbDeployNode;

import java.util.List;

/**
 * @author: yaozhendong
 * @create: 2019-10-22 11:58
 **/

public interface IDeployManageService {
    Long deploy(MethodLockId newId, TbDeployConfig entity, List<HostGroupDTO> hostGroupDTOList);

    List<HostGroupDTO> getHostGroupDTOList(TbDeployConfig entity, List<String> hostGroupIds);

    Long active(Long deployTaskId, List<String> hostGroupIds);

    void executeDeployTask(Long taskId);

    void executeActiveTask(Long taskId);

    List<TbDeployNode> getDeployNode(Long deployTaskId, Boolean hostGroupIsActive);
}
